package com.pc.service.impl;

import com.pc.enrty.Order;
import com.pc.mapper.OrderMapper;
import com.pc.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
@Service
public class OrderServiceImpl implements OrderService {
    @Autowired
    private OrderMapper orderMapper;

    @Override
    public boolean addOrder(Order order) {
        return orderMapper.insertOrder(order)==1?true:false;
    }

    @Override
    public ArrayList<Order> findOrder(Order order) {
        return orderMapper.selectOrder(order);
    }

    @Override
    public boolean updateOrder(Order order) {
        return false;
    }
}
